package org.example.campus_sys_backend.service;

import org.example.campus_sys_backend.mapper.StudentInfoMapper;
import org.example.campus_sys_backend.model.StudentInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentService {
    @Autowired
    private StudentInfoMapper studentInfoMapper;

    public Integer insertStudent(StudentInfo studentInfo){
        return studentInfoMapper.insertStudent(studentInfo);
    }

    public Integer updateStudent(Integer id){
        return studentInfoMapper.updateStudent(id);
    }
    public Integer allotStudent(Integer id,Integer classId){
        return studentInfoMapper.allotStudent(id,classId);
    }
}
